package com.wushibo.adddatabackend.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @AllArgsConstructor有参构造函数
 * @NoArgsConstructor无参构造函数
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    public Integer id;
    public String name;
    public String account;
    public String password;

//    @TableField(fill = FieldFill.INSERT)
//    private Date create_time;

    public User(String name,String account,String password){
        this.name=name;
        this.account=account;
        this.password=password;
    }
}